import {conter, ifEnergyLessThan, ifEnergyBiggerThan, existMyConstructionSite} from "./condition/condition.conditions";


interface roomConfig {
  numberConfig: Object
  unitConfig: Object
  prefix?: string
}

let creepConfiguration: any = {
  Spawn: {
    numberConfig: {
      harvester1: 1,
      harvester2: 1,
      carrier2: 1,
      carrier1: 1,
      temp1: 2,
      builder1: 1,
      struct_repairer1: 1,
      wall_repairer1: 1,
    },
    unitConfig: {
      harvester1: [WORK, CARRY, WORK, MOVE],
      harvester2: [WORK, WORK, WORK, WORK, WORK, CARRY, MOVE],
      carrier2: [CARRY, CARRY, CARRY, MOVE, MOVE, MOVE],
      carrier1: [CARRY, CARRY, MOVE],
      temp1: [WORK, WORK, WORK, WORK, WORK, WORK, WORK, WORK, CARRY, MOVE],
      builder1: [WORK, WORK, WORK, WORK, CARRY, CARRY, CARRY, CARRY, MOVE, MOVE, MOVE, MOVE],
      struct_repairer1: [WORK, WORK, CARRY, MOVE],
      wall_repairer1: [WORK, WORK, CARRY, CARRY, CARRY, CARRY, MOVE, MOVE, MOVE, MOVE, MOVE, MOVE],
    },
    //孵化条件
    judge: {
      struct_repairer1: conter,
      // harvester1: ifEnergyLessThan(300),
      harvester2: ifEnergyBiggerThan(300),
      builder1: existMyConstructionSite()
    }
  }
};
export {creepConfiguration} ;